#!/bin/sh
. /etc/rc.common
 
# The start subroutine
StartService() {
    /Library/StartupItems/mac-recover/mac-recover-daemon.py &
}
 
# The stop subroutine
StopService() {
    killall -TERM Python
    sleep 10
    killall -9 Python
}
 
# The restart subroutine
RestartService() {
    killall -TERM Python
    sleep 10
    killall -9 Python
    sleep 10
    /Library/StartupItems/mac-recover/mac-recover-daemon.py &
}
 
RunService "$1"
